module decoder_38 (
    input [2:0] cs,  // 3位输入信号//共阴极数码管
    output reg[5:0] cs2  // 译码器输出
);
	
	always @ (*)
	begin
		case (cs)
		4'd0:cs2=6'h3E;//8'h3f;
		4'd1:cs2=6'h3D;//8'h06;
		4'd2:cs2=6'h3B;//8'h5b;
		4'd3:cs2=6'h37;//8'h4f;
		4'd4:cs2=6'h2F;//8'h66;
		4'd5:cs2=6'h1F;//8'h6d;
		//4'd6:qout=8'h7d;
		//4'd7:qout=8'h07;
		//4'd8:qout=8'h7f;
		//4'd9:qout=8'h6f;
		default:cs2=6'h00;
		endcase
	end
endmodule

